<?php

if(!$GLOBALS['config']['mobileorderdisable']){
    $order_icon = '<span class="book-button" >订购</span>';
}else{
    $order_icon = '';
}
?>
<div class="wrap" >
      <header class="header">
         <div class="header-logo-box">
            <div class="logo" >
                 <?php diy('mobile_index_logo_01', 'imagelist', '{listinfo}<img src="{pic}" />{/listinfo}')?>
            </div>
            <span class="header-name"><?php diy('mobile_index_title_098', 'title', "");?></span>
         </div>
              <div class="header-share-box">
        <a href="javascript:;"  class="site">
            <span> <?php echo $city_name;?></span></a>
        </div>
        <div id="dl-menu" class="dl-menuwrapper">
            <button id="dl-menu-button">Open Menu</button>
            <ul class="dl-menu">
                  <?php if($depart_citys_list):?>
                      <?php foreach($depart_citys_list as $k=>$v):?>
                          <?php if($k!=CURRENT_CITY_ID):?>
                              <li><a href="<?php echo site_url('mobile/index?city_id='.$k)?>"><?php echo $v;?></a></li>
                          <?php endif ;?>
                      <?php endforeach ;?>
                  <?php endif;?>
            </ul>
        </div>
      </header>

    <?php if($_GET['eid']):?>

        <div class="container">
        <div class="personal">
            <div class="per-photo">
                <div class="phototag">
                    <img src="img/lygw.png">
                </div>
                <div class="photo">
                     <a href="tel:<?php echo $info['mobile']?>"> <img src="<?php echo URLPIC.$info['avatar']?>" alt="<?php echo $company?>"></a>
                </div>
            </div>
            <div class="name">
                <p><strong><?php echo $info['realname']?></strong>&nbsp;|&nbsp;<small><span onclick="javascript:window.location.href='tel:<?php echo $info['mobile']?>'"><?php echo $info['mobile']?></span></small></p>
                <p><small><?php echo $company?></small></p>
            </div>
        </div>
    </div>
    <?php else:?>

        <!-- Swiper*slider*start -->
        <div class="swiper-container">
            <div class="swiper-wrapper">
            <?php
            $tpl = <<<TEMPLATE
                {listinfo}
                <div class="swiper-slide"><a href="{link}"><img src="{pic}" alt="{title}"></a></div>
                {/listinfo}
TEMPLATE;
            diy('weixin_card48', 'imagelist', $tpl);
            ?>
            </div>
        </div>
    <?php endif ;?>




    <div class="search">
        <form action="<?php echo  site_url('/mobile/line/index/').'/' ?>" method="get" id="searchForm" accept-charset="utf-8">
            <input type="text" placeholder="搜索目的地/攻略/景点/酒店等" name="keyword"  >
            <input type="hidden" name="touchtpl" value="<?php echo $_GET['touchtpl']; ?>">
            <input type="hidden" name="preview" value="<?php echo intval($_GET['preview']); ?>">
        </form>
    </div>
<!--内容部分 sart-->
    <div class="container">
        <div class="left1">
        <?php
          $template = <<<TEMPLATE
        {links}
         <a href="{link}">
            <div class="left1-container">
                <span>{title}</span>
                <span><small>{name}</small></span>
                <img src="img/sheng.gif">
            </div>
           </a>
        {/links}
TEMPLATE;
          diy('mobile_index_nav_01', 'fontlist', $template);
         ?>
        </div>
        <div class="right1">
            <div class="right1-1">

                 <?php
                 $template = <<<TEMPLATE
        {links}
        <a href="{link}">
            <div class="right1-1-container">
                <img src="img/butterfly.gif">
                <span><strong>{title}</strong></span>
                <span><small>{name}</small></span>
            </div>
           </a>
        {/links}
TEMPLATE;
                 diy('mobile_index_nav_02', 'fontlist', $template);
                 ?>

            </div>
            <div class="right1-2">

                <?php
                $template = <<<TEMPLATE
    {links}
    <a href="{link}">
        <div class="right1-2-container">
            <img src="img/san.gif">
            <span><strong>{title}</strong></span>
            <span><small>{name}</small></span>
        </div>
       </a>
    {/links}
TEMPLATE;
                diy('mobile_index_nav_03', 'fontlist', $template);
                ?>

            </div>
        </div>
        <div class="left2">
            <div class="left2-1">
                <?php
                $template = <<<TEMPLATE
    {links}
    <a href="{link}">
        <div class="left2-container">
            <img src="img/car.gif">
            <span><strong>{title}</strong></span>
        </div>
       </a>
    {/links}
TEMPLATE;
                diy('mobile_index_nav_04', 'fontlist', $template);
                ?>

            </div>
            <div class="left2-2">

                          <?php
                          $template = <<<TEMPLATE
    {links}
    <a href="{link}">
        <div class="left2-container">
            <img src="img/plane.gif">
            <span><strong>{title}</strong></span>
        </div>
       </a>
    {/links}
TEMPLATE;
                          diy('mobile_index_nav_05', 'fontlist', $template);
                          ?>


            </div>
        </div>
        <div class="right2">
            <div class="right2-1">
                 <?php
                 $template = <<<TEMPLATE
    {links}
    <a href="{link}">
        <div class="right1-2-container">
            <img src="img/fish.gif">
            <span><strong>{title}</strong></span>
            <span> <small>{name}</small></span>
        </div>
       </a>
    {/links}
TEMPLATE;
                 diy('mobile_index_nav_06', 'fontlist', $template);
                 ?>
            </div>
        </div>
        <div class="left3">
            <div class="left3-1">
                     <?php
                     $template = <<<TEMPLATE
    {links}
    <a href="{link}">
        <div class="left3-container">
            <img src="img/bed.gif">
            <span><strong>{title}</strong></span>
        </div>
       </a>
    {/links}
TEMPLATE;
                     diy('mobile_index_nav_07', 'fontlist', $template);
                     ?>

            </div>
           <div class="left3-2">

                      <?php
                      $template = <<<TEMPLATE
    {links}
    <a href="{link}">
        <div class="left3-container">
            <img src="img/ticket.gif">
            <span><strong>{title}</strong></span>
        </div>
       </a>
    {/links}
TEMPLATE;
                      diy('mobile_index_nav_08', 'fontlist', $template);
                      ?>
           </div>
        </div>
        <div class="right3">
            <div class="right3-1">
                      <?php
                      $template = <<<TEMPLATE
    {links}
    <a href="{link}">
        <div class="left3-container">
            <img src="img/cup.gif">
            <span><strong>{title}</strong></span>
        </div>
       </a>
    {/links}
TEMPLATE;
                      diy('mobile_index_nav_09', 'fontlist', $template);
                      ?>
            </div>
            <div class="right3-2">
                 <?php
                 $template = <<<TEMPLATE
    {links}
    <a href="{link}">
        <div class="left3-container">
            <img src="img/map.gif">
            <span><strong>{title}</strong></span>
        </div>
       </a>
    {/links}
TEMPLATE;
                 diy('mobile_index_nav_10', 'fontlist', $template);
                 ?>
            </div>
        </div>
    </div>
    <!-- 当季热卖，产品推介*********start***************-->
    <div class="container">
        <div class="djrm">
            <img src="img/djrm.gif">
            <span style="display:block"><?php diy('mobile_index_title_099', 'title', "");?></span>
        </div>
        <ul class="hotline-container">
             <?php
             $tpl = <<<HTML
{linelist}
<li>
<a href="{link}">
                <div class="djrm1">
                    <div class="djrm1-1">
                        <img class="djrm1-1-img" src="{line_thumb}" alt="{line_name}" style="display: inline;"   >
                    </div>
                    <div class="djrmpm">
                        <img  src="img/djrmpm{key}.png"  style="display: inline;"  >
                    </div>
                <div class="djrmcontainer">
                  <span class="djrmcontainer-line-name">{line_name}</span><br>
                    <span style="color: dimgrey;">{line_trait}</span>
                </div>
                <div class="djrmprice">
                    <ul>
                        <li><span class="product_sort">{product_sort_name}</span></li>
                        <li><span class="price">{dollar}{low_price}</span></li>
                        <li><span class="price-end">起</span></li>
                    </ul>
                </div>
                </div>
            </li>
</a>
{/linelist}
HTML;
             if(!empty($info['lines'])){
                 $CI = new CI_Module();
                 $CI->load->model('diy.diy_model');
                 $CI->diy_model->__init_CI(1);
                 echo $CI->diy_model->process_linelist(array('line_numbers' => $info['lines']), $tpl);
             }else{
                 diy(CURRENT_CITY_ID.'mobile_hotline_02', 'linelist', $tpl);
             }?>

        </ul>

    </div>
    <!-- adbar-->
    <div class="container">
        <div class="adbar">
             <?php diy(CURRENT_CITY_ID.'mobile_index_banner_01', 'imagelist', '{listinfo}<a href="{link}"><img src="{pic}" /></a>{/listinfo}')?>
        </div>
    </div>
    <!-- 旅游分类start-->
    <div class="container">
        <div class="fenlei">
            <div class="myybar-1" >

                   <h1><?php diy('mobile_index_title_01', 'title', "");?></h1>

                 <div class="more">
                <?php
                $tpl = <<<HTML
                  {links}
                   <a href="{link}" >{name}</a>
                  {/links}

HTML;
                diy('mobile_index_font_01', 'fontlist', $tpl);
                ?>
                 </div>
            </div>
            <!-- 产品列表-->
            <ul>
                <?php

                $tpl = <<<HTML
{linelist}
                <li>
                    <div class="fl-left" >
                        <div  class="f1-left1" >
                        <a href="{link}">
                            <img class="f1-left1-img" src="{line_thumb}" alt="{line_name}">
                            <ul>
                                <li><h1 >{line_name}</h1></li>
                                <li class="other"><strong>{product_sort_name}</strong></li>
                                  <li class="price-box book-button-red-wrap">
                                 <span class="price">{dollar}{low_price}</span>
                                 $order_icon
                                </li>
                                </li>
                            </ul>
                        </a>
                        </div>
                    </div>
                </li>
{/linelist}
HTML;
                if(!empty($info['lines'])){
                    $CI = new CI_Module();
                    $CI->load->model('diy.diy_model');
                    $CI->diy_model->__init_CI(1);
                    echo $CI->diy_model->process_linelist(array('line_numbers' => $info['lines']), $tpl);
                }else{
                    diy(CURRENT_CITY_ID.'mobile_hotline_03', 'linelist', $tpl);
                }?>
            </ul>
        </div>
    </div>
    <div class="blank5"></div>
    <div class="container">
        <div class="fenlei">
            <div class="myybar-2" >

                   <h1><?php diy('mobile_index_title_02', 'title', "");?></h1>

                 <div class="more">
                <?php
                $tpl = <<<HTML
                  {links}
                   <a href="{link}" >{name}</a>
                  {/links}

HTML;
                diy('mobile_index_font_02', 'fontlist', $tpl);
                ?>
                 </div>
            </div>
            <!-- 产品列表-->

            <ul>
                <?php

                $tpl = <<<HTML
{linelist}
                 <li>
                    <div class="fl-left" >
                        <div  class="f1-left1" >
                        <a href="{link}">
                            <img class="f1-left1-img" src="{line_thumb}" alt="{line_name}">
                            <ul>
                                <li><h1 >{line_name}</h1></li>
                                <li class="other"><strong>{product_sort_name}</strong></li>
                                <li class="price-box book-button-green-wrap">
                                 <span class="price">{dollar}{low_price}</span>
                                 $order_icon
                                </li>
                            </ul>
                        </a>
                        </div>
                    </div>
                </li>
{/linelist}
HTML;
                if(!empty($info['lines'])){
                    $CI = new CI_Module();
                    $CI->load->model('diy.diy_model');
                    $CI->diy_model->__init_CI(1);
                    echo $CI->diy_model->process_linelist(array('line_numbers' => $info['lines']), $tpl);
                }else{
                    diy(CURRENT_CITY_ID.'mobile_hotline_04', 'linelist', $tpl);
                }?>
            </ul>

        </div>
    </div>
    <div class="blank5"></div>
    <div class="container">
        <div class="fenlei">
           <div class="myybar-3" >

                   <h1><?php diy('mobile_index_title_03', 'title', "");?></h1>

                 <div class="more">
                <?php
                $tpl = <<<HTML
                  {links}
                   <a href="{link}" >{name}</a>
                  {/links}

HTML;
                diy('mobile_index_font_03', 'fontlist', $tpl);
                ?>
                 </div>
            </div>
            <!-- 产品列表-->
            <ul>
                 <?php

                 $tpl = <<<HTML
{linelist}
                 <li>
                    <div class="fl-left" >
                        <div  class="f1-left1" >
                        <a href="{link}">
                            <img class="f1-left1-img" src="{line_thumb}" alt="{line_name}">
                            <ul>
                                <li><h1>{line_name}</h1></li>
                                <li class="other"><strong>{product_sort_name}</strong></li>
                                <li class="price-box book-button-orange-wrap">
                                 <span class="price">{dollar}{low_price}</span>
                                 $order_icon
                                </li>
                            </ul>
                        </a>
                        </div>
                    </div>
                </li>
{/linelist}
HTML;
                 if(!empty($info['lines'])){
                     $CI = new CI_Module();
                     $CI->load->model('diy.diy_model');
                     $CI->diy_model->__init_CI(1);
                     echo $CI->diy_model->process_linelist(array('line_numbers' => $info['lines']), $tpl);
                 }else{
                     diy(CURRENT_CITY_ID.'mobile_hotline_05', 'linelist', $tpl);
                 }?>

            </ul>


        </div>
    </div>
    <div class="blank5"></div>
    <div class="container">
        <div class="company">
            <p><strong><?php echo $company;?></strong></p>
            <?php if($GLOBALS['sid']!=33582) { ?>
            <p><small>旅游许可证编号：<?php echo $licence?></small></p>
            <?php } ?>
            <p><small><?php echo $company;?>   品牌授权</small></p>
            <div class="blank-line"></div>
            <p><?php if($GLOBALS['sid']!=33582) { ?><small>浩楠网络科技提供技术支持 </small><?php } ?></p>
            <div class="blank5"></div>
        </div>
    </div>

</div>
<script type="text/javascript" src="js/modernizr.custom.js"></script>
<script type="text/javascript" src="js/jquery.dlmenu.js"></script>
<script src="js/swiper.3.1.2.min.js"></script>
<script>
    $(function(){
        $( '#dl-menu' ).dlmenu();
    });
    var mySwiper = new Swiper ('.swiper-container', {
        loop: true,
        autoplay: 3000
    });
</script>